//
//  DeviceChartFieldModel.h
//  RuiHeApp
//
//  Created by Jun on 2022/11/24.
//

#import "BaseModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface DeviceChartFieldModel : BaseModel
///字段名(已国际化)
@property (nonatomic ,copy) NSString *keyName;
//请求字段 
@property (nonatomic ,copy) NSString *keyCode;
//注释
@property (nonatomic ,copy) NSString *remark;
//最小值
@property (nonatomic ,assign) NSInteger minValue;
//最大值
@property (nonatomic ,assign) NSInteger maxValue;
//单位
@property (nonatomic ,copy) NSString *unitName;
//数据类型
@property (nonatomic ,copy) NSString *dataType;

@property (nonatomic ,copy) NSString *format;
//数据点的精度
@property (nonatomic ,copy) NSString *accuracy;

@property (nonatomic ,copy) NSString *alias;

@property (nonatomic ,copy) NSString *content;

//是否是枚举类型
@property (nonatomic ,assign) BOOL isEnum;
//枚举值(后台返回)
@property (nonatomic ,copy) NSString *enums;
//枚举类型对应的值(后台返回)
@property (nonatomic ,copy) NSString *enumNames;

//枚举值(使用)
@property (nonatomic ,strong) NSArray *enumIndexs;
//枚举类型对应的值(使用)
@property (nonatomic ,strong) NSArray *enumValues;

@property (nonatomic ,assign) BOOL isShowLine;

@property (nonatomic ,copy) NSString *colorStr;
//Y轴标签的最小值
@property (nonatomic ,assign) CGFloat y_min;
//Y轴标签的最大值
@property (nonatomic ,assign) CGFloat y_max;
//数据的最小值
@property (nonatomic ,assign) CGFloat value_min;
//数据的最大值
@property (nonatomic ,assign) CGFloat value_max;
//从字典数据中抽取出来的值
@property (nonatomic ,copy) NSArray *dataArray;

//1是图表  2是底部数据
@property (nonatomic ,assign) NSInteger displayStyle;

@property (nonatomic ,assign) BOOL isSelected;

@property (nonatomic ,copy) NSString *endpointCode;

//参数多语言
@property (nonatomic ,copy)NSString *i18n;
//枚举多语言
@property (nonatomic ,copy)NSString *enumI18n;
//参数多语言
@property (nonatomic ,copy)NSDictionary *paramLanguageDic;
//枚举多语言
@property (nonatomic ,copy)NSDictionary *enumLanguageDic;

@property (nonatomic ,assign)BOOL hasNaNValue;//标志是否 是32767 这样的温度值(233的设备)

//测试数据
+(NSArray*)getTestData:(NSArray*)keys;
@end

NS_ASSUME_NONNULL_END
